<template>
  <view class="gr-search-input">
    <icon class="icon" type="search" size="16" />
    <input class="input" confirm-type="search" :placeholder="props.placeholder" />
  </view>
</template>

<script setup lang="ts">

const props = defineProps({
  placeholder: {
    type: String,
    default: "请输入",
  },
})

</script>

<style lang="scss">
.gr-search-input {
  display: flex;
  align-items: center;
  background-color: #FFFFFF;
  border-radius: 50rpx;
  font-size: 24rpx;
  height: 50rpx;
  padding: 0 20rpx;

  .icon {
    flex: 0;
    margin-right: 10rpx;
  }

  .input {
    flex: 1;
  }
}
</style>